import vue from "vue"

export let BASEURL = "http://localhost:8085/"
export let loginForm = (data) => vue.axios.post("system/login", data);
export let getMusicCount = () => vue.axios.get("/album/getCount");
export let getInterviewCount = () => vue.axios.get("/interview/getCount");
export let getVideoCount = () => vue.axios.get("/video/getCount");
export let editAlbum=(data)=>vue.axios.post("album/edit",data);
export let getAlbum=(data)=>vue.axios.get("album/list?"+data);
export let addAlbum=(data)=>vue.axios.post("album/add",data);
export let getAlbumDetail = (aid) => vue.axios.get("album/get/" + aid);
export let getSongByAlbum = (aid) => vue.axios.get("album/getSong?" + aid);
export let editSong=(data)=>vue.axios.post("album/editSong",data);
export let addSong=(data)=>vue.axios.post("album/addSong",data);
export let deleteSong = (data) => vue.axios.delete("/album/deleteSong?"+data);
export let deleteAlbum = (data) => vue.axios.delete("/album/delete?"+data);
export let getInterview=(data)=>vue.axios.get("interview/list?"+data);
export let editInterview=(data)=>vue.axios.post("interview/edit",data);
export let addInterview=(data)=>vue.axios.post("interview/add",data);
export let deleteInterview = (data) => vue.axios.delete("/interview/delete?"+data);
export let getVideo=(data)=>vue.axios.get("video/list?"+data);
export let editVideo=(data)=>vue.axios.post("video/edit",data);
export let addVideo=(data)=>vue.axios.post("video/add",data);
export let deleteVideo = (data) => vue.axios.delete("/video/delete?"+data);
export let getSongByYear = () => vue.axios.get("album/getSongByYear");
export let getVideoByType = () => vue.axios.get("video/getVideoByType");

